﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TotalSystems.DataAccess;

namespace TotalSystems.Business.Public
{
    class FinancialYearRepository
    {
        TSContext _context = new TSContext();


        #region Select
        public IEnumerable<ACC_FinancialYear> GetACC_FinancialYear()
        {
            return _context.ACC_FinancialYear;
        }

        public IEnumerable<ACC_FinancialYear> GetACC_FinancialYearActive()
        {
            return _context.ACC_FinancialYear.Where(x => x.ACC_Fy_Active == true).ToList();
        }

        #endregion
    }
}
